<!--
 * @Description: 
 * @Date: 2022-03-29 11:09:46
 * @LastEditTime: 2022-04-12 16:45:26
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <title>TUIRoom</title>
    <script type="text/javascript">
      // ref: https://cn.vitejs.dev/config/build-options.html#build-target
      function isSupportsES6Modules() {
        const script = document.createElement('script');
        if ('noModule' in script) {
          return true;
        }
        script.type = 'module';
        return script.type === 'module';
      }
      function isSupportDynamicImport() {
         try {
          new Function('import("")');
          return true;
        } catch (error) {
          return false;
        }
      }
      if (!isSupportsES6Modules() || !isSupportDynamicImport()) {
        console.error(`isSupportsES6Modules: ${isSupportsES6Modules()}, isSupportDynamicImport: ${isSupportDynamicImport()}.`)
        alert("The current browser failed to load the page, we recommend you use the latest version of chrome browser.");
      }
    </script>
  </head>
  <body>
    <div id="app"></div>
    <script type="module" src="/src/main.ts"></script>
  </body>
</html>
